package com.evon.yardmanagement.dao;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.evon.yardmanagement.model.KeyBin;

/**
 * A data access object (DAO) providing persistence and search support for
 * KeyBin entities. Transaction control of the save(), update() and delete()
 * operations can directly support Spring container-managed transactions or they
 * can be augmented to handle user-managed Spring transactions. Each of these
 * methods provides additional information for how to configure it for the
 * desired type of transaction control.
 * 
 * @see com.abc.yardmanagement.dao.KeyBin
 * @author MyEclipse Persistence Tools
 */

public class KeyBinDAO extends BaseHibernateDAO {
	private static final Log log = LogFactory.getLog(KeyBinDAO.class);
	// property constants
	public static final String KEY_BIN_NUMBER = "keyBinNumber";
	public static final String KEY_BIN_NAME = "keyBinName";
	public static final String OCCUPIED = "occupied";
	public static final String HSC_ID = "hscId";
	public static final String HSU_ID = "hsuId";

	@Override
	public Class getQueryClass() {
		// TODO Auto-generated method stub
		return KeyBin.class;
	}

	public List findByKeyBinNumber(Object keyBinNumber) {
		return findByProperty(KEY_BIN_NUMBER, keyBinNumber);
	}

	public List findByKeyBinName(Object keyBinName) {
		return findByProperty(KEY_BIN_NAME, keyBinName);
	}

	public List findByOccupied(Object occupied) {
		return findByProperty(OCCUPIED, occupied);
	}

	public List findByHscId(Object hscId) {
		return findByProperty(HSC_ID, hscId);
	}

	public List findByHsuId(Object hsuId) {
		return findByProperty(HSU_ID, hsuId);
	}

}